package strategy1;

import java.util.Date;

public class FirstVisitTaskGenerator  extends AbstractTaskGenerator{
    @Override
    TaskType getTaskType() {
        return TaskType.FIRST_VISIT;
    }

    @Override
    Date calculateExecuteTime(TaskContext context) {
        // 首次随访在购药后1天执行
        return new Date(context.getPurchaseDate().getTime() + 24 * 60 * 60 * 1000L);
    }
}
